package com.niodata.dp.monitor.core.task.entity;

import com.niodata.dp.collection.StringList;

public class TaskAlertSetting {


  public static final String ALERT_FAILED = "FAILED";
  public static final String ALERT_STARTED = "STARTED";
  public static final String ALERT_FINISHED = "FINISHED";
  public static final String ALERT_TIMEOUT = "TIMEOUT";

  private boolean alertEnabled = true;

  //是否发送本组默认DINGDING
  private boolean sendDefaultDing = false;

  //是否发送本组默认EMAIL
  private boolean sendDefaultEmail = false;

  private int timeOutMinutes;

  private StringList alertTypes;

  private AlertInfos alertTargets;

  public boolean isAlertEnabled() {
    return alertEnabled;
  }

  public void setAlertEnabled(boolean alertEnabled) {
    this.alertEnabled = alertEnabled;
  }

  public int getTimeOutMinutes() {
    return timeOutMinutes;
  }

  public void setTimeOutMinutes(int timeOutMinutes) {
    this.timeOutMinutes = timeOutMinutes;
  }

  public StringList getAlertTypes() {
    return alertTypes;
  }

  public void setAlertTypes(StringList alertTypes) {
    this.alertTypes = alertTypes;
  }

  public AlertInfos getAlertTargets() {
    return alertTargets;
  }

  public void setAlertTargets(AlertInfos alertTargets) {
    this.alertTargets = alertTargets;
  }

  public boolean isSendDefaultDing() {
    return sendDefaultDing;
  }

  public void setSendDefaultDing(boolean sendDefaultDing) {
    this.sendDefaultDing = sendDefaultDing;
  }

  public boolean isSendDefaultEmail() {
    return sendDefaultEmail;
  }

  public void setSendDefaultEmail(boolean sendDefaultEmail) {
    this.sendDefaultEmail = sendDefaultEmail;
  }
}
